package com.jmb.controller;

import com.jmb.po.Place;
import com.jmb.service.PlaceService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@RestController
public class PlaceController {
    @Resource
    private PlaceService placeService;
    //返回接种指定疫苗的接种点
    @PostMapping(value = "/findPlaceByVid")
    public List<Place> findPlaceByVid(@RequestParam("vid") Integer vid){
        List<Place> places =placeService.findPlaceByVid(vid);
        return places;
    }
}
